package com.atom.app.mvvm.ui.fragments

import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import com.atom.app.mvvm.ui.activities.MainViewModel
import com.atom.app.mvvm.view.shimmer.Shimmer
import com.atom.app.mvvm.view.shimmer.ShimmerFrameLayout
import com.atom.module.mvvm.base.ApiViewModel
import com.atom.module.mvvm.base.view.fragment.AbstractFragment


class MainFragment : AbstractFragment() {

    override fun onCreateView(
        inflater: LayoutInflater,
        container: ViewGroup?,
        savedInstanceState: Bundle?
    ): View? {
        val shammer = Shimmer.AlphaHighlightBuilder().build()
        val layout = ShimmerFrameLayout(requireContext()).setShimmer(shammer)
        return layout
    }

}

class FMainViewModel(mv: MainViewModel) : ApiViewModel by mv {

}